package com.chatcompetition.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chatcompetition.common.api.CommonPage;
import com.chatcompetition.domain.entity.CompetitionActivity;

import java.util.List;

public interface CompetitionService extends IService<CompetitionActivity> {
//    List<CompetitionActivity> listAll();
    CompetitionActivity getById(Long id);

    boolean update(CompetitionActivity activity);
    boolean delete(Long id);

    List<String> getSubCategoriesByCategory(String category);
    // 查询所有竞赛超级管理员
    List<CompetitionActivity> listAllCompetitions();

    List<CompetitionActivity> listAllCompetitionsAddTeachers();


    CommonPage<CompetitionActivity> listAllCompetitionsPage(int page, int size);
    List<CompetitionActivity> getCompetitionsByFilters(String category, String subCategory);

    CommonPage<CompetitionActivity> listAllCompetitionsAddTeachersPage(int page, int size);
}
